<template>
  <div class="goods">
    <GoodsListItem
      v-for="(item, index) of goodsList"
      :key="index"
      :goods="item"
    />
  </div>
</template>

<script>
import GoodsListItem from './Item'

export default {
  name: 'GoodsList',
  props: {
    goodsList: {
      type: Array,
      default () {
        return []
      }
    }
  },
  components: {
    GoodsListItem
  }
}
</script>

<style lang="scss" scoped>
.goods {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 2px 0;
}
</style>
